package com.sky.sd.common.web.response;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * <br/>功能: 响应结果枚举
 * <br/>版本: 1.0
 * <br/>开发人员: 弓振
 * <br/>创建日期: 2020/6/17 11:46
 * <br/>修改日期: 2020/6/17 11:46
 * <br/>修改列表:
 */
@Getter
@AllArgsConstructor
public enum ResultType {

    INTERNAL_SERVER_ERROR(500,"请检查 API 是否异常"),
    FAIL(500,"请检查 API 是否异常"),
    UNSUPPORTED_MEDIA_TYPE(415,"请求类型错误"),
    NOT_ACCEPTABLE(406,"响应类型错误"),
    METHOD_NOT_ALLOWED(405,"不支持当前请求方法"),
    NOT_FOUND(404,"没有找到任何被指定的uri"),
    FORBIDDEN(403,"没有权限，请联系管理员"),
    UNAUTHORIZED(401,"认证失败，请重新认证"),
    CLIENT_DETAILS_UNAUTHORIZED(401,"客户端资源校验失败"),
    MSG_NOT_READABLE(400, "请求参数不能读取"),
    PARAM_MISS(400, "缺少必要的请求参数"),
    PARAM_TYPE_ERROR(400, "请求参数类型错误"),
    PARAM_BIND_ERROR(400, "请求参数绑定错误"),
    PARAM_VALID_ERROR(400, "参数校验失败"),
    BAD_REQUEST(400,"业务异常"),
    SUCCESS(200,"操作成功");

    private int code;

    private String msg;
}
